killall -9 cgl-render
killall -9 cgl-capture
killall -9 blender
killall -9 dinoshade
killall -9  scube
killall -9 spot
killall -9 stars
killall -9 surfgrid
killall -9  glpuzzle
killall -9  drawelements
killall -9  glxgears
killall -9 port
rm -f /tmp/fifo1234*

#rm ipc
idx=0
for LINE in `cat ipc`  
do   
    if [ $idx -eq 0 ]
    then
        echo "ipcrm -m $LINE"
        ipcrm -m $LINE
        idx=1
    else
        echo "ipcrm -s $LINE"
        ipcrm -s $LINE
    fi
done
echo '' > ipc

#rm files
for LINE in `cat ipcfile`  
do   
    rm $LINE
done
echo '' > ipcfile
